﻿using CNKI.Graduate.Framework.Ioc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CNKI.Graduate.Framework.Db
{
    public class DbHelper
    {
        private static readonly IDatabase _db;
        static DbHelper()
        {
            _db = ServiceLocator.GetInstance<IDatabase>();
        }
        /// <summary>
        /// 数据库访问公共对象
        /// </summary>
        public static IDatabase Db
        {
            get { return _db; }
        }
    }
}
